var ejs = require('ejs'),
	path = require('path'),
	express = require('express'),
	cookie = require('cookie-parser'),
	bodyParser = require('body-parser'),

	/*
	*	modules
	*/
	log = require('./controller/log'),
	index = require('./controller/index'),
	app = express();

// app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.engine('.html', require('ejs').__express);  
app.set('view engine', 'html');  
app.use(express.static('public'));

// app.get('*', function(req, res){
//     res.send('404.html')
// });
app.use('/',index);
app.use('/',log);
app.listen(3000);